You need a power pump to drain Mordack's wand into yours.
The gizmo is upstairs in the laboratory.
Put both wands onto the trays. (You can't do it wrong.)
Now add the secret ingredient to get the machine going.
Maybe the machine comes from Wisconsin.
You'll need to add a small piece of cheese, from the dungeon cell.
Can't get your hooks into the piece of cheese, huh?